package org.example.myleet.p424;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(4 == solution.characterReplacement("ABAB", 2));
        Assert.isTrue(4 == solution.characterReplacement("AABABBA", 1));
        Assert.isTrue(5 == solution.characterReplacement("AABABBABB", 1));
        Assert.isTrue(2 == solution.characterReplacement("ABAA", 0));
    }
}
